<?php
  
  class compile_property {
      
      
      
      function compileProperty() {
          
          
          $propertyPath = config::$codePath."/property";
          file::createFolder($propertyPath, true);
          
          
          $dataProperty = new data();
          $dataProperty->table = "_com";
          $dataProperty->where = "property<>''";
          
          
          foreach ($dataProperty->getData() as $item) {
              
              $filename = $propertyPath."/{$item['com']}.php";
              $text = $item['property'];
              
              //compile text
              
              file::createTextFile($filename, $text, true);
              
          }
          
          
          
          
          
          
          
      }
      
      
      
      
      
      
  }
  
  
?>
